package com.usian;

import com.usian.pojo.TbItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "usian-cart-service")
public interface CartFeign {

    @RequestMapping("/selectCartByUserId")
    Map<String, TbItem> selectCartByUserId(@RequestParam String userId);

    @RequestMapping("/insertItemToRedis")
    boolean insertItemToRedis(@RequestParam String userId, Map<String, TbItem> cart);
}
